package com.ydd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
@TableName("ydd_user")
@ApiModel(value = "YddUser对象", description = "")
public class YddUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("0是男，1是女")
    private Integer sex;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户头像")
    private String icon;

    @ApiModelProperty("个性描述")
    private String notes;

    @ApiModelProperty("出生年月")
    private String birthday;

    @ApiModelProperty("现居住地址")
    private String address;

    @ApiModelProperty("是否为默认数据，null表示不是，1表示是")
    private String defaultData;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getDefaultData() {
        return defaultData;
    }

    public void setDefaultData(String defaultData) {
        this.defaultData = defaultData;
    }

    @Override
    public String toString() {
        return "YddUser{" +
            "id=" + id +
            ", username=" + username +
            ", mobile=" + mobile +
            ", sex=" + sex +
            ", password=" + password +
            ", icon=" + icon +
            ", notes=" + notes +
            ", birthday=" + birthday +
            ", address=" + address +
            ", defaultData=" + defaultData +
        "}";
    }
}
